//
//  RocBluetoothView.h
//  RocRemoteControlProject
//
//  Created by 新致李照鹏 on 2018/12/26.
//  Copyright © 2018年 Roc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    RocBluetoothViewButtonOpen,
    RocBluetoothViewButtonScan,
    RocBluetoothViewButtonAgain,
    RocBluetoothViewButtonBinding,
} RocBluetoothViewButtonType;

typedef enum : NSUInteger {
    RocBluetoothViewStateNotOpen,
    RocBluetoothViewStateOpen,
    RocBluetoothViewStateScaning,
    RocBluetoothViewStateNotFind,
    RocBluetoothViewStateGet,
    RocBluetoothViewStateBind,
} RocBluetoothViewState;

@class RocBluetoothView;
@protocol RocBluetoothViewDelegate <NSObject>

- (void)RocBluetoothView:(RocBluetoothView *)view ClickButton:(RocBluetoothViewButtonType)type;

@end


@interface RocBluetoothView : UIView

@property (nonatomic, weak) id<RocBluetoothViewDelegate>mydelegate;

/**
当前展示的是什么界面
*/
@property (nonatomic, assign) RocBluetoothViewState currentState;
/**
  展示什么样的界面
 */
- (void)showWithState:(RocBluetoothViewState)state;
/**
 传入设备名
 */
- (void)setupDeviveName:(NSString *)name;

@end

NS_ASSUME_NONNULL_END
